# $NetBSD: Makefile,v 1.21 2012/11/23 22:33:47 othyro Exp $

DISTNAME=	moregroupware-0.7.2
PKGREVISION=	3
CATEGORIES=	www
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=moregroupware/}
DISTFILES=	moregroupware-core-0.7.2${EXTRACT_SUFX} \
		moregroupware-docs-0.7.2${EXTRACT_SUFX} \
		moregroupware-addons-0.7.2${EXTRACT_SUFX} \
		moregroupware-scripts-0.7.2${EXTRACT_SUFX}

MAINTAINER=	pih@xbase.dk
HOMEPAGE=	http://www.moregroupware.de/
COMMENT=	Web based GroupWare system

DEPENDS+=	${PHP_PKG_PREFIX}-curl>=4.3.4:../../www/php-curl
DEPENDS+=	${PHP_PKG_PREFIX}-ldap>=4.3.4:../../databases/php-ldap
DEPENDS+=	${PHP_PKG_PREFIX}-mysql>=4.3.4:../../databases/php-mysql
DEPENDS+=	${PHP_PKG_PREFIX}-gd>=4.3.4:../../graphics/php-gd

NO_BUILD=	yes
WRKSRC=		${WRKDIR}/moregroupware
AUTO_MKDIRS=	yes

do-install:
	${CP} -r ${WRKSRC} ${DESTDIR}${PREFIX}/share
	${CHOWN} -R www:www ${DESTDIR}${PREFIX}/share/moregroupware

.include "../../lang/php/phpversion.mk"
.include "../../mk/mysql.buildlink3.mk"
.include "../../mk/apache.mk"
.include "../../mk/bsd.pkg.mk"
